package com.shakespace.artofandroid.chapter03

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.shakespace.artofandroid.R
import com.shakespace.artofandroid.chapter03.basic.ViewCoordinateActivity
import com.shakespace.artofandroid.chapter03.conflict.ConflictActivity
import com.shakespace.firstlinecode.global.start
import kotlinx.android.synthetic.main.activity_view.*

class ViewActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view)

        tv_coordinate.setOnClickListener {
            start(
                ViewCoordinateActivity::class.java
            )
        }

        tv_conflict.setOnClickListener {
            start(ConflictActivity::class.java)
        }
    }
}
